require('./endpoints');
var fs = require('fs');
var midway = require('testarmada-midway');
midway.start({
host: "localhost",
mockedDirectory: "./resources/mocked-data",
port: 8000,
httpsPort: 4444,
project: 'HelloMidway'
});
The default port for HTTPS is
4444
Once you add the above code, the mock server will provide the HTTPS and HTTPS support by default. Hence when the mock server starts up, you will see both the ports open. Note that the mock server auto generates the certificates (key.pem and cert.pem). If you want to provide your own key and certificate, you can provide it under the mocked data directory.